




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/16/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfprojectplan.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfprojectplan.entity.YfProjectPlan;
import com.application.yfprojectplan.struts.form.YfProjectPlanForm;
import com.application.yfprojectplan.dao.YfProjectPlanDAO;
 /**
 * 
 * Description:YfProjectPlanService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 02/16/2012 
 * 
 */
public class YfProjectPlanService extends BaseService
{
	private YfProjectPlanDAO yfProjectPlanDAO;

	public YfProjectPlanDAO getYfProjectPlanDAO() {
		return this.yfProjectPlanDAO;
	}

	public void setYfProjectPlanDAO(YfProjectPlanDAO yfProjectPlanDAO) {
		this.yfProjectPlanDAO = yfProjectPlanDAO;
	}
        

        public YfProjectPlan getYfProjectPlan(YfProjectPlan yfProjectPlan) {
		return (YfProjectPlan) this.getBaseDao().queryByPk(yfProjectPlan, yfProjectPlan.getId());
	}
	
	public Integer getAllCountYfProjectPlan(YfProjectPlanForm yfProjectPlanForm){
		return this.yfProjectPlanDAO.getAllCountYfProjectPlan(yfProjectPlanForm);
	}
	
	public List<YfProjectPlan> searchYfProjectPlan(YfProjectPlanForm yfProjectPlanForm, PageBean pageBean) throws Exception {
		List<YfProjectPlan> yfProjectPlanList = (List) this.yfProjectPlanDAO.searchYfProjectPlan(yfProjectPlanForm, pageBean);
		return yfProjectPlanList;
	}
	public List searchYfProjectPlanMax(YfProjectPlanForm yfProjectPlanForm,PageBean pageBean){
	   return this.yfProjectPlanDAO.searchYfProjectPlanMax(yfProjectPlanForm,pageBean);	 
	}
	
        public void deleteYfProjectPlans(YfProjectPlanForm yfProjectPlanForm){
	   this.yfProjectPlanDAO.deleteYfProjectPlans(yfProjectPlanForm);	 
	}
        
        public List getYfProjectPlanItems(String planId){
        	return this.yfProjectPlanDAO.getYfProjectPlanItems(planId);	 
        }
        
        public void deleteYfProjectPlanItems(String planId){
        	 this.yfProjectPlanDAO.deleteYfProjectPlanItems(planId);	 
        }
}
